package com.example.springbootorderrabbitmqconsoumer.service.direct;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

@RabbitListener(queues = "email.direct.queue")
@Service
public class EmailDirectConsumer {

    @RabbitHandler
    public void receiveMessage(String msg) {
        System.out.println("email-direct-queue 收到消息：" + msg);
    }
}
